<template>
  <el-table :data="props.tableData">
    <el-table-column prop="date" label="姓名">
      <template #default="scope">
        {{field_format(scope.row,'name')}}
      </template>
    </el-table-column>
    <el-table-column prop="name" label="手机号">
      <template #default="scope">
        {{field_format(scope.row,'mobile')}}
      </template>
    </el-table-column>
    <el-table-column prop="address" label="班级名称">
      <template #default="scope">
        <div class="className" @click="proxy.$utils.toLink(`/classManage/classDetails?classId=${scope.row.classId}`)">{{scope.row.class_Info.className}}</div>
      </template>
    </el-table-column>
    <el-table-column prop="address" label="班级状态" />
    <el-table-column prop="address" label="性别" />
    <el-table-column prop="address" label="身份证号">
      <template #default="scope">
        {{field_format(scope.row,'identityCard')}}
      </template>
    </el-table-column>
    <el-table-column prop="address" label="学历">
      <template #default="scope">
        {{field_format(scope.row,'education')}}
      </template>
    </el-table-column>
    <el-table-column prop="address" label="所在企业名称">
      <template #default="scope">
        {{field_format(scope.row,'enterprise')}}
      </template>
    </el-table-column>
    <el-table-column prop="address" label="班级备注" />
  </el-table>
</template>

<script setup lang="ts">
let props = defineProps(["tableData"]);

function field_format(item, key) {
  let row = item.source ? item.user_data : item.user_Info.baseInfo;
  return row[key];
}
</script>



<style lang="scss" scoped>
</style>


